public class text7 {
    public static void main(String[] args) {
        int[][]arr={{22,66,44},{77,33,88},{25,45,65},{11,66,99}};
        int D=0;
        for (int i = 0; i < arr.length; i++) {
            int[]b=arr[i];
           int c= gestSum(b);
            D=D+c;

            System.out.println(c);
        }
        System.out.println(D);










    }public static int gestSum(int[]sum){
        int all=0;
        for (int i = 0; i < sum.length; i++) {
            all=all+sum[i];

        }return all;
    }

    }

